package com.ultimatech.eurekaclient.service;


import com.ultimatech.cloud.poc.base.model.Message;
import com.ultimatech.cloud.poc.base.model.UserVo;
import com.ultimatech.eurekaclient.model.User;

import java.util.List;

/**
 * Created by zhangleping on 2017/10/31.
 */
public interface IUserService {
    Message<UserVo> getById(int id);

    Message<UserVo> getByNumber(String number);

    Message<UserVo> addUser(User user, boolean throwEx);

    Message<Integer> deleteUserById(int id);

    Message<UserVo> updateUser(User user);

    Message<UserVo> updateUser(UserVo user);

    Message<List<UserVo>> findAll();
}
